@layout("/common/_container.html"){
<div class="row">
    <div class="col-sm-12">
        <div class="ibox float-e-margins">
            <div class="ibox-title">
                <h5>管理</h5>
            </div>
            <div class="ibox-content">
                <div class="row row-lg">
                    <div class="col-sm-12">
                        <input type="hidden" id="orgId" value="${org.id}">
                        <input type="hidden" id="areaId" value="${org.areaId}">
                        <div class="row">
                            <div class="col-sm-3" style="width: 11%">
                                <#NameCon id="id" name="编号" />
                            </div>
                            <div class="col-sm-3" style="width: 11%">
                                <#NameCon id="account" name="账号" />
                            </div>
                            <div class="col-sm-3" style="width: 11%">
                                <#NameCon id="name" name="姓名" />
                            </div>
                            <div class="col-sm-3" style="width: 12%">
                                <#NameCon id="studentCardId" name="校卡号" />
                            </div>
                            <div class="col-sm-3" style="width: 11%">
                                <#SelectCon id="sysRoleId" name="角色" underline="true">
                                <option value="">所有角色</option>
                                <option value="2" >教师</option>
                                <option value="300" >学校管理者</option>
                                <option value="301" >学校职工</option>
                            </#SelectCon>
                        </div>
                        <div class="col-sm-3" style="width: 11%">
                            <#SelectCon id="roleId" name="职务" underline="true">
                            <option value="">所有职务</option>
                            @for(role in roles){
                            <option value="${role.id}">${role.roleName}</option>
                            @}
                        </#SelectCon>
                    </div>
                    <div class="col-sm-3" style="width: 11%">
                        <#SelectCon id="phaseId" name="学段" underline="true">
                        <option value="">所有学段</option>
                        @for(phase in phases){
                        <option value="${phase.id}">${phase.name}</option>
                        @}
                    </#SelectCon>
                </div>
                <div class="col-sm-3" style="width: 11%">
                    <#SelectCon id="status" name="状态" underline="true">
                    <option value="">所有状态</option>
                    <option value="true"  >未冻结</option>
                    <option value="false" >已冻结</option>
                </#SelectCon>
            </div>
                    <div class="col-sm-3" style="width: 11%">
                        <#button name="搜索" icon="fa-search" clickFun="PtTeacher.search()"/>
                    </div>
                        </div>
                        <div class="hidden-xs" id="PtTeacherTableToolbar" role="group">
                            @if(shiro.hasPermission("/ptTeacher/add")){
                                <#button name="添加" icon="fa-plus" clickFun="PtTeacher.openAddPtTeacher()"/>
                            @}
                            @if(shiro.hasPermission("/ptTeacher/import")){
                            <#button name="导入" icon="fa-cloud-download" clickFun="PtTeacher.import()"
                            space="true"/>
                            @}
                            @if(shiro.hasPermission("/ptTeacher/export")){
                            <#button name="导出" icon="fa-cloud-upload" clickFun="PtTeacher.export()"  space="true"/>

                            @}
                            @if(shiro.hasPermission("/ptTeacher/batchDelete")){
                            <#button name="批量删除" icon="fa-remove" clickFun="PtTeacher.batchDelete()"  space="true"/>

                            @}
                            @if(shiro.hasPermission("/ptTeacher/updateEnable")){
                            <#button name="批量冻结" icon="fa-lock" clickFun="PtTeacher.updateEnable(0)"  space="true"/>

                            @}
                            @if(shiro.hasPermission("/ptTeacher/updateEnable")){
                            <#button name="批量启动" icon="fa-unlock" clickFun="PtTeacher.updateEnable(1)"  space="true"/>

                            @}
                            @if(shiro.hasPermission("/postmanage/toPostManage")){
                            <#button name="职务管理" icon="fa-user-plus" clickFun="PtTeacher.addOrEditPostManage()"  space="true"/>
                            @}
                        </div>
                        <#table id="PtTeacherTable"/>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<script src="${ctxPath}/static/modular/system/ptTeacher/ptTeacher.js"></script>
@}
